package com.wtc.homework;

/**
 * @author 马可
 * @version 1.0
 * 变成题2
 * 2023/5/8
 * IntelliJ IDEA
 */
public class Homework02 {
    public static void main(String[] args) {
        Animal(new
                       Father() {
            @Override
            void shout() {
                System.out.println("小猫喵喵叫！");
            }
        });
    }
    public static void Animal(Father father) {
        father.shout();
    }
}
abstract class Father {
    abstract void shout();
}

